

from  netCDF4 import  Dataset


if __name__ == '__main__':
    c = Dataset('http://111.198.60.33:9093/history_data/GDFS/SHYS_VIS/20210308/ShanXi_GDFS_NMC_AMEL_SHYS_VIS_ACHN_LNO_G005_20210308200007203.nc','r', format="NETCDF4_CLASSIC")
    print(c)
    # 纬度
    lat = (c.variables['lat'][:])
    # 经度
    lon = (c.variables['lon'][:])
    # 时间（10天，维度为10）
    time = (c.variables['time'][:])

    print(lat)
    print(lon)
    print(time)